﻿package com.obas.model.business
{
	import com.obas.model.business.Entity;
	import com.obas.model.business.Location;

	[Bindable]
	[RemoteClass(alias="com.obas.model.business.Location")]
	
	public class Location
		extends
			com.obas.model.business.Entity
	{
		public static const ATTRIBUTE_PARENTLOCATIONID:String="parentLocationId";

		private var _parentLocationId:Number;
		private var _parentLocation:com.obas.model.business.Location;
		private var _areaId:Number;
		private var _area:com.obas.model.business.Location;

		public function Location()
		{
		}

		public function get parentLocationId():Number
		{
			return _parentLocationId;
		}

		public function set parentLocationId(value:Number):void
		{
			_parentLocationId = value;
		}

		public function get parentLocation():com.obas.model.business.Location
		{
			return _parentLocation;
		}

		public function set parentLocation(value:com.obas.model.business.Location):void
		{
			_parentLocation = value;
		}

		public function get areaId():Number
		{
			return _areaId;
		}

		public function set areaId(value:Number):void
		{
			_areaId = value;
		}

		public function get area():com.obas.model.business.Location
		{
			return _area;
		}

		public function set area(value:com.obas.model.business.Location):void
		{
			_area = value;
		}
	}
}